package org.ktpro.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.ktpro.shortlink.project.dao.entity.ShortLinkDO;
import org.ktpro.shortlink.project.dto.req.RecycleBinRemoveReqDTO;
import org.ktpro.shortlink.project.dto.req.RecycleBinReqDTO;
import org.ktpro.shortlink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import org.ktpro.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * 回收站接口层
 *
 * @Author Kris20030907
 * QQ: 3185633428 微信: 18712679036
 */
public interface RecycleBinService extends IService<ShortLinkDO> {

    /**
     * 短链接移进回收站
     */
    void saveRecycleBin(RecycleBinReqDTO requestParam);

    /**
     * 短链接移出回收站
     */
    void removeRecycleBin(RecycleBinReqDTO requestParam);

    /**
     * 分页查询回收站短链接
     *
     * @param requestParam 分页查询短链接请求参数
     * @return 短链接分页返回结果
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkRecycleBinPageReqDTO requestParam);


    /**
     * 完全删除短链接
     */
    void removeFullyRecycleBin(RecycleBinRemoveReqDTO requestParam);
}
